﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/12/2 星期一 23:29:00
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;
using System.ServiceModel;
using System.IO;

namespace Sector7.Framework.EntityType
{
    /// <summary>
    /// 文件传输结果定义
    /// </summary>
    [Serializable()]
    [MessageContract]
    public class TransferResult
    {
        /// <summary>
        /// 获取或设置错误码
        /// </summary>
        [MessageHeader]
        public int ErrorCode { get; set; }

        /// <summary>
        /// 获取或设置错误信息
        /// </summary>
        [MessageHeader]
        public string ErrorMessage { get; set; }

        /// <summary>
        /// 获取或设置原始流
        /// </summary>
        [MessageBodyMember]
        public Stream SourceStream { get; set; }
    }  
}
